package com.squirrel.common.param.video;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;

/**
 * @Description MultipartFileParam 文件上传对象
 * @Author 关远键
 * @Version v1.0.0
 * @Date 2021/11/24 22:14
 */
@Data
@ApiModel("文件上传对象")
public class MultipartFileParam {

//    @ApiModelProperty("是否分片")
//    private boolean chunkFlag;

    @ApiModelProperty(value = "文件传输任务ID", required = true)
    @NotBlank(message = "不能为空")
    private String taskId;

    @ApiModelProperty(value = "当前为第几分片", required = true)
    private int chunkNumber;

    @ApiModelProperty(value = "每个分块的大小", required = true)
    private long chunkSize;

    @ApiModelProperty(value = "分片总数", required = true)
    private int totalChunks;

    @ApiModelProperty(value = "用户昵称", required = true)
    private String nickname;

    @ApiModelProperty(value = "分块文件传输对象", required = true)
    private MultipartFile file;

    @ApiModelProperty(value = "文件名", required = true)
    private String filename;

}
